'''
Created on 2010-12-15

@author: yaron hu
'''

import wx

class MyFrame(wx.Frame):
    def __init__(self, parent, id):
        wx.Frame.__init__(self, parent, id, size=(400,500))
        self.panel = wx.Panel(self, -1)
        self.panel.SetBackgroundColour("White")
        
        
        
        # Rich Format Text Area
        richTextCtrl = wx.TextCtrl(self.panel, wx.NewId(), "", 
                                   size=(200, 160), pos=(50,70),
                                   style=wx.TE_MULTILINE|wx.TE_RICH2)
        richTextCtrl.GetValue();
        
        staticText = wx.StaticText(self.panel, wx.NewId(), richTextCtrl.GetValue(), pos=(50,50))
        staticText.SetBackgroundColour("White")

if __name__ == '__main__':
    app = wx.PySimpleApp()
    frame = MyFrame(None, -1)
    frame.Show()
    app.MainLoop()
